package com.junchao.peng.pojo;

import java.io.Serializable;
import java.util.Objects;

/**
 * @author dell
 */
public class MeetRoom implements Serializable {

    private static final long serialVersionUID = 1L;

    private Integer id;
    private Integer number;
    private String name;
    private Boolean status;

    public MeetRoom(Integer id, String name, Integer number, Boolean status) {
        this.id = id;
        this.number = number;
        this.name = name;
        this.status = status;
    }

    public MeetRoom() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof MeetRoom)) {
            return false;
        }
        MeetRoom meetRoom = (MeetRoom) o;
        return getId().equals(meetRoom.getId()) && getNumber().equals(meetRoom.getNumber()) && getName().equals(meetRoom.getName()) && getStatus().equals(meetRoom.getStatus());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getId(), getNumber(), getName(), getStatus());
    }

    @Override
    public String toString() {
        return "MeetRoom{" +
                "id=" + id +
                ", number=" + number +
                ", name='" + name + '\'' +
                ", status=" + status +
                '}';
    }
}
